{template 'header'}
{template 'autoHeader','auto'}
<div class="shop-guide layout960">
    <div class="shop-guide-nav fn-left">
        <h2>导购分类</h2>
        <ul>
            <li{if !$catid} class="selected"{/if}><a href="{url('auto/guideList', 'carid='.$carid)}">全部</a></li>
	        {loop $guideCategory $id $cat}
            <li{if $catid==$id} class="selected"{/if}><a href="{url('auto/guideList', 'carid='.$carid.'&catid='.$id)}">{$cat[catname]}</a></li>
			{/loop}
        </ul>
    </div>
    <div class="shop-guide-con fn-left">
        <div class="shop-guide-con-hd">
            <p>导购类别：<span>{$guideCategory[$catid][catname]}</span></p>
        </div>
	    {if $gulidSummary}
        <ul class="shop-guide-list">
	        {loop $gulidSummary $main}
            <li>
                <div class="hd fn-clear">
                    <h3><a href="{url('guide/show', 'itemid='.$main['itemid'])}"> {$main[title]}</a></h3>
                    <span>{date("Y-m-d",$main[addtime])}</span>
                </div>
                <div class="fn-clear">
                    <div class="img fn-left">
                        <a href="{url('guide/show', 'itemid='.$main['itemid'])}"><img src="{$main[thumb]}" alt="" width="135" height="85" /></a>
                    </div>
                    <div class="con fn-right">
                        <p>{$main[introduce]}</p>
                        <a href="{url('guide/show', 'itemid='.$main['itemid'])}">阅读全文<<</a>
                    </div>
                </div>
            </li>
			{/loop}
        </ul>
	    {php $total=$items}
	    {template 'pager', 'inc'}
	    {else}
	    <!--{template 'noauto', 'message'}-->
	    {/if}
    </div>
</div>
{template 'footer'}